derivation of euler's equation of motion